/*
 * Copyright (c) 2009 Ted Bullock <tbullock@comlore.com>
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

/*
 * Note that we use libintl.h because that is the most common header providing
 * the gettext functionality
 */
#define COMPILING_LIBINTL_H
#include "libintl.h"

#include <locale.h>

const char *gettext(const char* id)
{
	return id;
}

const char *dgettext(const char* dm, const char* id)
{
	return id;
}

const char *ngettext(const char* id1, const char* id2, unsigned int n)
{
	if(n == 1)
		return id1;
	else
		return id2;
}

const char *dcgettext(const char* dm, const char* id, int cat)
{
	return id;
}

const char *textdomain(const char* dm)
{
	return "messages";
}

const char *bindtextdomain(const char* dm, const char* dir)
{
	return NULL;
}

const char *dngettext(const char* dm, const char* id1, const char* id2, unsigned int n)
{
	if(n == 1)
		return id1;
	else
		return id2;
}

const char *dcngettext(const char* dm, const char* id1, const char* id2, unsigned int n, int cat)
{
	if(n == 1)
		return id1;
	else
		return id2;
}

const char *bind_textdomain_codeset(const char* dm, const char* cs)
{
	return NULL;
}